@extends('layouts.page')
@section('title', '活动报名')
@section('content')

    <div id="tf-contact">
        <div class="container">
            <div class="row">
                <div class="col-md-8 col-md-offset-2">
                    <br/>

                    <h3>活动报名</h3>

                    <p>{{$act->subject}} {{$act->start_time}} {{$act->end_time}}</p>
                    <hr/>

                    @if(!empty($msg))
                        <p class="alert alert-warning">{{$msg}}</p>
                    @endif

                    <form method="post" action="/activity/{{ $id }}/verify">
                        <p>验证码已发送到 {{$mobile}}</p>

                        <fieldset class="form-group">
                            <label for="exampleInputEmail1">验证码</label>
                            <input name="code" type="text" class="form-control" id="exampleInputEmail1" placeholder=""
                                   autocomplete="off">
                        </fieldset>

                        <input type="hidden" name="id" value="{{ $id }}">
                        <input type="hidden" name="mobile" value="{{ $mobile }}">

                        <button type="submit" class="btn btn-default tf-btn">提交</button>
                    </form>

                </div>
            </div>
        </div>
    </div>


@endsection